package com.yg.yws.testServlet;

import com.yg.yws.Info;
import com.yg.yws.annotation.YWebPackage;
import com.yg.yws.filter.YWebFilter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author Yang Gang
 * @Description:
 * @Date Created in 18:56 2023/2/6
 */
@YWebPackage("com.yg.yws.testServlet")
//@WebFilter("/*")
public class ZFilter extends YWebFilter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        super.init(filterConfig);
        //显示调试日志
        Info.isShowMsg = true;
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) {
        super.doFilter(servletRequest, servletResponse, filterChain);
    }

    @Override
    public void destroy() {
        super.destroy();
    }

    @Override
    public void doFunctionPre(HttpServletRequest req, HttpServletResponse resp) {
        super.doFunctionPre(req, resp);
    }
}
